package org.example.platform.design.zhongjie;

/**
 * 中介者模式
 */
public class Test {
    public static void main(String[] args) {
        LHGAL lhgal = new LHGAL();
        USA usa = new USA(lhgal);
        YLK ylk = new YLK(lhgal);

        lhgal.usa = usa;
        lhgal.ylk = ylk;
        usa.dec("核战争");
        ylk.dec("没有核武器");


    }
}
